<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/memberConfig/save}">
        <input type="hidden" name="id" th:if="${memberConfig}" th:value="${memberConfig.id}">
        <div class="layui-form-item">
            <label class="layui-form-label required">会员级别</label>
            <div class="layui-input-inline">
                <select name="level" mo:dict="MEMBER_LEVEL" mo-selected="${memberConfig?.level}" mo-empty="" lay-verify="level"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">充值金额（元）</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="rechargeAmount" placeholder="请输入充值金额" th:value="${memberConfig?.rechargeAmount}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">折扣</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="discount" placeholder="请输入折扣" th:value="${memberConfig?.discount}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">消费限制</label>
            <div class="layui-input-inline">
                <select name="limitConsume" mo:dict="LIMIT_CONSUME" mo-selected="${memberConfig?.limitConsume}"  lay-verify="limitConsume"></select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${memberConfig?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>